<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #parent{
            width: 100%;
            display: table;
            table-layout: fixed;
        }
        #col1,#col2,#col3,#col4{
            display: table-cell;

            height: 200px;
            text-align: center;
            line-height: 200px;
        }
        #col1{
            background-color: goldenrod;
        }
        #col2{
            background-color: wheat;
        }
        #col3{
            background-color: beige;
        }
        #col4{
            background-color: goldenrod;
        }
    </style>
</head>
<body>
    <!-- 等分布局是指一行被分为若干列，每一列的宽度是相同的值 -->
    <!-- display属性的值有关table实现等分布局效果 -->

    <div id="parent">
        <div id="col1"><p>1</p></div>
        <div id="col2"><p>2</p></div>
        <div id="col3"><p>3</p></div>
        <div id="col4"><p>4</p></div>
    </div>
</body>
</html>